// 2.1  Create a new object that is stored in another file and load the file
//      if the content of the file was cached, then just used the cached version

(function() {
  var window = this;
  csCache = window.csCache = function (file) {
    
  }

  // This function loads the file asked by the user
  csCache.load = function (fileName) {
    xhr = new XMLHttpRequest();                     
    xhr.open(
        "GET",                          
        fileName,       
        true                            
      );
    xhr.onreadystatechange=function(){
        if (xhr.readyState==4){
          if (xhr.status==200){
            console.dir(xhr);
          }else{
            //handle the HTTP error...
          }
        };
      };
    xhr.send(null)
  }
})();



